<div id="rule-body">
    <div class="department-panel">
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">操作</label>
                <div class="layui-input-block">
                    <button type="button" onclick="SetPopup('添加规则','AddRule')" class="layui-btn layui-btn-normal">添加规则</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
renderTable({
    elem : "#rule-body",
    model : "rules",
    pk: "rule_id",
        tableApi: api.rule.get,
        updateApi: api.rule.edit,
        delApi: api.rule.del,
        cols: [
            { field: 'rule_id', title: '编号', width: 80, sort: true, fixed: 'left' }
            , { field: 'rule_group_name', title: '分组', width: 100 }
            , { field: 'rule_name', title: '名称', edit: 'text', width: 200 }
            , { field: 'rule_key', title: '标识', edit: 'text', width: 180 }
            , { field: 'rule_info', title: '简介', edit: 'text', sort: true }
            , { field: 'rule_time', title: '创建时间', width: 150, sort: true }
            , { fixed: 'right', width: 165, align: 'center', toolbar: '#layuiActtion' }
        ],
});
</script>